package leetcode.code212;

import java.util.List;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution212 implements IDebug {

	public abstract List<String> findWords(char[][] board, String[] words);

	@Override
	public void debug1() {
		String str1 = "[[\"o\",\"a\",\"a\",\"n\"],[\"e\",\"t\",\"a\",\"e\"],[\"i\",\"h\",\"k\",\"r\"],[\"i\",\"f\",\"l\",\"v\"]]";
		String str2 = "[\"oath\",\"pea\",\"eat\",\"rain\"]";
		String str3 = "[\"eat\",\"oath\"]";
		debug(str1,str2,str3);
	}

	private void debug(String str1, String str2, String str3) {
		char[][] board = HelpDebug.str2array5(str1);
		String[] words = HelpDebug.str2array2(str2);
		List<String> e = HelpDebug.str2liststr(str3);
		List<String> r = this.findWords(board, words);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
